package edu.sctu.zhuyingzhi.month201506.day20150615.generricIterator;

import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * Created by user13 on 2015/6/15.
 */
public class MapSet<E> {
    public void setMap(){
        LinkedHashMap<String,Integer> map = new LinkedHashMap<>();
        map.put("haha",1);
        map.put("haha2",2);
        map.put("haha3",3);
        map.put("hehe1",4);
        map.put("hehe2",5);
    }

    public Iterator<E> getIterator(HashMap map){
      Iterator<E>  iterator = map.entrySet().iterator();
        return iterator;
    }
}
